package com.codedancer.campus.manager.api.menu.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Data
@ApiModel(value = "菜单添加或修改Ro")
public class MenuAddOrUpdateRo {

    @ApiModelProperty("菜单名称")
    @NotEmpty(message = "请输入菜单名称")
    private String name;

    @ApiModelProperty("菜单路径")
    @NotEmpty(message = "请输入菜单路径")
    private String path;

    @ApiModelProperty("组件名称")
    private String componentName;

    @ApiModelProperty("图标")
    @NotEmpty(message = "请输入图标")
    private String icon;

    @ApiModelProperty("是否是菜单，否就是按钮")
    @NotNull(message = "请选择是否是菜单")
    private Boolean isMenu;

    @ApiModelProperty("是否是路由")
    @NotNull(message = "请选择是否是路由")
    private Boolean isRouter;

    @ApiModelProperty("是否隐藏")
    @NotNull(message = "请选择是否隐藏")
    private Boolean isHidden;
}
